/**
 * 文件压缩解压缩工具类
 */
var adm_zip = require('adm-zip');
var fileUtility = require('./fileUtility');
class ZipUtility{
    static unZipFile(zipFile,extractPath,clearFolder=true){
        if (clearFolder==true) fileUtility.deleteFolder(extractPath);
        var unzip = new adm_zip(zipFile); 
        unzip.extractAllTo(extractPath, true);
        console.log('finished')
    }
}
exports = module.exports = ZipUtility;